package com.tbit.uqbike.push.service.impl;

import com.tbit.uqbike.push.dao.core.UserDao;
import com.tbit.uqbike.push.pojo.User;
import com.tbit.uqbike.push.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenmengran
 * @Description: 用户信息查询
 * @date 2019\6\11 001115:17
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User getByUserId(Integer userId) {
        return userDao.getByUserId(userId);
    }

    @Override
    public User getByMachineId(Integer machineId) {
        return userDao.getByMachineId(machineId);
    }
}
